#ifndef SOCKET_DEAL_WITH_H_
#define SOCKET_DEAL_WITH_H_

#include <stdlib.h>
#include <gtk/gtk.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/wait.h>
#include <netinet/in.h>
#include <string.h>
#include <errno.h>
#include <pthread.h>

#define MYPORT 8080
#define BACKLOG 1024
#ifndef MAXUSERINFOSIZE
#define MAXUSERINFOSIZE 128
#endif

int pthread_socket_start();
int socket_start(int *socket_fd, char *ip_addr);
int socket_send_request(char *userinfo);
int socket_send_request_needRet(char *userinfo, char *recvRet);
char *socket_getUserFriends(char *userinfo);
char *socket_getUserName(char *userinfo);
char *socket_setUserFlag(char *userinfo);
#endif
